package com.eastjet.maintenance.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.eastjet.maintenance.domain.Documentation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author 杨博文
 * @description 针对表【documentation(关联文档)】的数据库操作Service
 * @createDate 2024-11-25 09:23:38
 */
public interface DocumentationService extends IService<Documentation> {

    /**
     * 插入文档
     *
     * @param documentation
     * @return
     */
    @Transactional(rollbackFor = Exception.class)
    Boolean InsertDocumentation(Documentation documentation);

    /**
     * 批量更新文档
     *
     * @param documentation
     * @return
     */
    @Transactional(rollbackFor = Exception.class)
    Boolean UpdateDocumentation(List<String> documentation);

    /*
     * 查询文档
     */
    List<Documentation> SelectDocumentation(String code);

    /*
     * 批量插入文档
     */
    Boolean InsertList(List<Documentation> documentation);

}
